package wwl.lsf;

import java.io.IOException;
import java.util.Scanner;

/**
 * @Title
 * @Author wangwenliang
 * @Date 2022/2/28
 * @Description
 */
public class 逃逸分析 {

  public static void main(String[] args) throws InterruptedException, IOException {
    Scanner scanner = new Scanner(System.in);
    scanner.nextLine();
    System.out.println("开始干活了");
    for (int i = 0; i < 100000; i++) {
      getAge(i);
    }

    scanner.nextLine();
  }

  public static int getAge(int age) {
    Student person = new Student(" 小明 ", age);
    return person.getAge();
  }

  static class Student {

    private String name;
    private int age;

    public Student(String name, int age) {
      this.name = name;
      this.age = age;
    }

    public String getName() {
      return name;
    }

    public void setName(String name) {
      this.name = name;
    }

    public int getAge() {
      return age;
    }

    public void setAge(int age) {
      this.age = age;
    }
  }

}
